#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlError>
#include <QtSql/QSqlQuery>

namespace Ui {
class MainWindow;
}

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    QVector<QPair<int, QString>> type_name_Data;
    QVector<QPair<int, int>> duration_Data;

    void select_history_of_oneday(const QDate &date);
    void history_list();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_3_clicked();


private:
    Ui::MainWindow *ui;
    QSqlDatabase db;

    friend class ArcWidget;
};

#endif // MAINWINDOW_H
